import numpy as np
import matplotlib.pyplot as plt
import math
from basic import *


x = list(range(3, 20))

y = [math.factorial(i) for i in x]
y1 = [i*4 for i in x]
y2 = [i*5 for i in x]
y3 = [i*6 for i in x]

plt.axes(yscale="log")
plt.plot(x, y, label="STE")
plt.plot(x, y1, label="$b=4$")
plt.plot(x, y2, label="$b=5$")
plt.plot(x, y3, label="$b=6$")
plt.xlabel('$m$')
plt.ylabel('Permutations')
plt.legend()
plt.tight_layout()
plt.savefig(PATH+'bfunc.pdf', format='pdf')
plt.show()